﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Atom.Tool
{
    public class TimeTaskModel
    {
        public int Id;          //任务ID
        public long Time;       //任务执行时间，毫秒    
        public TimeEvent Execut;//执行逻辑   
        
        public TimeTaskModel(int id,long time,TimeEvent execut)
        {
            Id = id;
            Time = time;
            Execut = execut;
        } 
        public void Run()
        {
            Execut();
        }
    }
}
